package day2.cases.traittest

/**
  * Created by Administrator on 2017/6/8.
  */
trait Person1 {
  val eyeNum:Int=2
}
class Student(val name:String) extends Person1{
  def sayHello()=println("Hi,I'm "+name +"I have "+eyeNum+"eyes !" )
}

object  testPerson{
  def main(args: Array[String]) {
    val s=new Student("zhangsanfeng")
    s.sayHello();
  }
}